package com.xiaomi.front.service.bill;

import com.xiaomi.pojo.Bill;
import com.xiaomi.pojo.Billdetailed;
import com.xiaomi.pojo.Commoditys;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface BillService {

    //创建订单
    Boolean CreateOrder(int[] scid, double jiage, int aid, int uid, String orderNum);

    //根据订单编号获取订单基本信息和详情
    Bill getBillInfo(String orderNum);

    //查询订单里商品名称
    List<Commoditys> GetCommName( String orderNum);

    //修改订单
    int updateBill(int payid, String bid);

    //根据uid查看订单
    List<Bill>getAll(int uid , int id);

    //按编号 模糊查询
    List<Bill>getBid(int uid, String bid);

    //按 uid 编号查看订单详情
    Bill getOrderNum( int uid, String OrderNum);

    //按uid/编号取消订单
    int UpdateBill( int uid,String PrderNum,int sta);

    //按 uid 状态查看订单数量
    int getBillCount( int uid, int id);
}
